package com.example.quartz.openfeign;

import com.example.quartz.entity.vo.UpdateMovieSaleVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author 高垚淼
 * @version 1.0
 */
@FeignClient(name = "cinema-order",contextId = "movieSellClient")  //被调用模块的服务名
public interface MovieSellFeignClient {

    // 查询出所有的电影id
    @GetMapping("/sysMovie/getIds")
    public Object getIds();

    //    更新电影票房
    @PostMapping("/sysSession/updateMovieSale")
    public Object updateMovieSale(@RequestBody UpdateMovieSaleVo updateMovieSaleVo);
}
